﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="JCNT.NoteWeb.Web._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>WPCMS</title>
    <link href="../css/wpcms.css" rel="stylesheet" type="text/css" media="screen" />
    <%--<script type="text/javascript" src="../css/nav.js"></script>--%>

    <script type="text/javascript" src="../js/jquery-1.7.2.js"></script>

    <%--<script type="text/javascript" src="../js/jquery.floatDiv.js"></script>--%>
    <%--<script type="text/javascript" src="../js/common.js"></script>--%>

    <script type="text/javascript">
        $(document).ready(function() {
            w_h = $(document).height() - $("#div_top").height() - 10;
            w_w = $(document).width();
            /*
            $("#div_center").width(w_w);
            $("#div_center").height(w_h);
            */
            $("#iframe_tree").width(200 - 5);
            $("#iframe_tree").height(w_h);
            $("#iframe_Center").width(w_w - 200 - 20);
            $("#iframe_Center").height(w_h);

        });

        function btnClick(i_index) {
            //edit
            if (i_index == 1) {
                var src = "<%=src_edit %>";
                $("#iframe_Center").attr("src", src);
            }
            //add
            if (i_index == 2) {
                var src = "<%=src_add %>";
                $("#iframe_Center").attr("src", src);
            }
            //delete
            if (i_index == 3) {
                return confirm('确定要删除吗？');
                var src = "<%=src_edit %>";
                $("#iframe_Center").attr("src", src);
            }
            //query
            if (i_index == 4) {
                var src = "<%=src_qry %>";
                $("#iframe_Center").attr("src", src);
            }
        }
    </script>

</head>
<body style="overflow: hidden">
    <form id="form1" runat="server">
    <div id="div_top" class="top_div">
        <div class="top_tool">
            <%--<asp:LinkButton ID="btn_edt" CssClass="btn_edit" runat="server" OnClick="btn_edt_Click">修改</asp:LinkButton>
            <asp:LinkButton ID="btn_add" CssClass="btn_edit" runat="server" OnClick="btn_add_Click">添加</asp:LinkButton>
            <asp:LinkButton ID="btn_del" CssClass="btn_edit" runat="server" OnClientClick="return confirm('确定要删除吗？')"
                OnClick="btn_del_Click">删除</asp:LinkButton>
            <asp:LinkButton ID="btn_qry" CssClass="btn_edit" runat="server" OnClick="btn_qry_Click">查找</asp:LinkButton>
            <input id="Button1" type="button" value="修改" class="btn_I" onclick="btnClick(1)" />
            <input id="Button2" type="button" value="添加" class="btn_I" onclick="btnClick(2)" />
            <input id="Button3" type="button" value="删除" class="btn_I" onclick="btnClick(3)" />
            <input id="Button4" type="button" value="查找" class="btn_I" onclick="btnClick(4)" />--%>
        </div>
    </div>
    <div id="div_center">
    </div>
    <table style="width: 100%;">
        <tr>
            <td width="200px">
                <iframe id="iframe_tree" name="iframe_tree" src="Tree.aspx" class="iframe_tree" title="iframe_tree"
                    frameborder="0" style="margin: 0 0 0 5px;"></iframe>
            </td>
            <td>
                <iframe name="iframe_Center" id="iframe_Center" src="Right.aspx" class="iframe_Center"
                    title="iframe_Center" frameborder="0" style="margin: 0 0 0 5px;"></iframe>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
